package com.puppy.util;

import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;

/*
 * @Author: puppy
 * @CreateDate:  2023-07-01 09:22:24
 * @FullNameClass: $
 * @Description: $
 */
public class PingUtil {
    public static boolean isReachAble(String ipAddr) throws IOException {
        int timeOut = 3000;
        boolean status = true;
        status = InetAddress.getByName(ipAddr).isReachable(timeOut);
        return status;

    }
}
